import StatusEnum from "@/enums/StatusEnum";
// import {search} from "@/api/pharmacy/drug";

/**
 * @param label 表头
 * @param prop 字段名
 * @param isSearch 是否筛选项
 * @type {[{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string, enum: {0: string, 1: string, 2: string}}]}
 */
const tableColumn = [{
  label: "姓名",
  prop: "name",
  isTable: true,
  isSearch: true,
  isForm: true,
  formType: "input"
}, {
  label: "手机号",
  prop: "phone",
  isForm: true,
  isTable: true,
  isSearch: true,
  formType: "input",
  isPrivacy:true
}, {
  label: "身份证",
  prop: "idcard",
  isTable: true,
  isForm: true,
  isPrivacy:true

}, {
  label: "签名",
  prop: "ca_sign_image",
  isTable: true,
  formType: "imageAvatar",
}, {
  label: "CA认证",
  prop: "examine_name",
  isTable: true,
}, {
  label: "状态",
  prop: "status",
  isSearch: true,
  isTable: true,
  formType: "radio",
  defaultValue: 0,
  enum: StatusEnum
}]
const tableConfig = {
  buttons: ["view", "edit", "status"]
}
const pageConfig = {
  small: false,
  disabled: false,
  background: false,
}

export {
  tableColumn,
  tableConfig,
  pageConfig
};